import request from '@/utils/request'
import { transFormValue } from '@/utils/tools'

// 订单列表
export function orderGetlist(data) {
  return request({
    url: '/order/getList' + transFormValue(data),
    method: 'post'
  })
}

//充值下单
export function orderCreateMenuOrder(data) {
  return request({
    url: '/order/createMenuOrder' + transFormValue(data),
    method: 'post'
  })
}

//支付订单
export function orderPay(data) {
  return request({
    url: '/order/pay' + transFormValue(data),
    method: 'post'
  })
}